﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using MasterDetailTemplate.Services;
using MasterDetailTemplate.Services.impl;
using Moq;

namespace MasterDetailTemplateTest.Helper
{
    public class DietStorageServiceTestHelper {

        public static async Task<IDietStorageService> getIntializedDietStorageService() {
            var preferenceMocked = new Mock<IPreferenceStorage>();
            var mockedPreference = preferenceMocked.Object;
            IDietStorageService dietStorageService =
                new DietStorageService(mockedPreference);
            await dietStorageService.InitializeAsync();
            return dietStorageService;
        }
    }
}
